'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
  let {fileName} = event;
  
  let deleteKeyRes = await db.collection('module_key').where({
	  fileName
  }).remove()
  
  if(deleteKeyRes.affectedDocs !== 0){
	  return{
		  status:0,
		  msg:"删除成功"
	  }
  }
  
  return {
	  status:-1,
	  msg:"稍后重试"
  }
};
